package com.spzx.user.domain;

import com.spzx.common.core.web.domain.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 地区信息表
 * </p>
 *
 * @author atguigu
 * @since 2024-11-18
 */
@Getter
@Setter
@Schema(description = "地区信息表")
public class Region extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @Schema(description = "地区编码")
    private String code;

    @Schema(description = "上级地区code")
    private String parentCode;

    @Schema(description = "地区名称")
    private String name;

    @Schema(description = "地区级别：1-省、自治区、直辖市 2-地级市、地区、自治州、盟 3-市辖区、县级市、县")
    private Integer level;
}
